Calls in ST
The following language elements can be called in ST:
Articles in this section: |
---|
Order for calling a language element If you are calling one of these language elements but there are different language elements with the same name, the following order is applied:
|
Here an explanation of this order using the example 1 where the following 3 language elements are declared:
-
one function block instance named
Element1
(within the sectionVAR...END
) -
one method named
Element1
-
one function named
Element1
Due to the order for calling a language element, Neuron Power Engineer calls the methods. Neuron Power Engineer highlights parameters as faulty when they have not been declared within the method.
Example 1 for order when calling an element |
---|
|
If the declaration of the method is missing (see example2), Neuron Power Engineer calls the function block instance.
Example 2 for order when calling an element |
---|
|
Only, if the declaration of the function block instance is missing as well (see example 3), Neuron Power Engineer calls the function. Neuron Power Engineer highlights parameters as faulty when they have not been declared within the function.
Example 3 for order when calling an element |
---|
|